/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.nct.cached;

import java.io.IOException;
import org.nct.handler.MemCachedHandler;

/**
 *
 * @author annn
 */
public class main {

    public static void main(String[] args) throws IOException, InterruptedException {
        Cached a = new Cached();

        Thread b = new Thread(a);
        b.start();

        for (int i = 0; i < 10500; i++) {
            MemCachedHandler h;
            h = new MemCachedHandler("Key-" + i, i + 500, false);
            a.Delete(h);
            //  System.out.println(h.getValue());
            Thread.sleep(10);
        }
    }
}
